Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stubgenc] Generate Inline generics from __type_params__ #17559

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

InvincibleRMC
Copy link
Contributor

@InvincibleRMC InvincibleRMC commented Jul 22, 2024

Fixes #17447

This allows generating inline generics for stubgenc by using __type_params__.

Similar to #17463 but for __type_params__ instead of __annotations__

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

mypy/test/teststubgen.py Outdated Show resolved Hide resolved

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@InvincibleRMC
Copy link
Contributor Author

@sobolevn any other comments / concerns?

@InvincibleRMC
Copy link
Contributor Author

@sobolevn Friendly ping if you need anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[stubgen] infer_sig_from_docstring fails with python3.12 inline generic
3 participants